

public class People {
    private String name;
    private int age;
    String sex = "男";

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public static void main(String[] args) {
        People p = new People();
        p.setName("zhangsan");
        p.setAge(10);
        System.out.println(p.getName()+" "+p.getAge()+" "+p.sex);


    }
}
